// pages/home/components/ToggleItem/index.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    list: [
      { icon: '/assets/images/my_fraternity.png', text: '我的活动', url: '/packageA/pages/active/list/index' },
      { icon: '/assets/images/my_discounts.png', text: '我的优惠', url: '/packageA/pages/nopage/index?title=我的优惠' },
      { icon: '/assets/images/file_management.png', text: '档案管理', url:'/packageA/pages/authentication/register2/index?type=edit&title=档案管理' },
      { icon: '/assets/images/my_collect.png', text: '我的收藏', url: '/packageA/pages/collect/index' }
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onClick(event) {
      const { url } = event.currentTarget.dataset;
      wx.navigateTo({ url });
    }
  }
})